Circuits and methods for testing fpga routing switches

ABSTRACT

An FPGA architecture includes multiplexers having non-volatile switches having control gates coupled to word lines W, each word line associated with a row, the switches connecting to wiring tracks through buffers having a controllable ground connection NGND, at least some of the switches being a tie-off switch coupleable to one of a plurality of bitlines B, each bitline associated with column.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to field-programmable gate arrays (FPGAs). More particularly, the present invention relates to testing for manufacturing defects in FPGA devices.

2. The Prior Art

Testing the routing tracks and switches in an FGPA device for manufacturing defects is an important part of the FPGA manufacturing process. Such defects manifest themselves in ways that may be described by fault models. Testing should be done with the best possible coverage of potential faults and the least possible test time.

Reprogrammable FPGA routing is typically tested by programming various configurations into the FPGA device and then executing test patterns for each configuration. To reduce test time, the number of configurations and the number of test patterns required for each configuration should be minimized. A test pattern is a set of specific data applied to and expected from a design which has been configured in the device.

Reprogrammable non-volatile FPGAs have generally been tested like other reprogrammable FGPAs. However non-volatile FPGAs may require more time to program each configuration than an SRAM-based FPGA. For instance, this is often true of flash-based FGPAs. It would therefore be especially advantageous for reprogrammable non-volatile FPGAs if a way can be found to achieve good coverage with fewer configurations, even if some extra circuitry or more test patterns are required.

FIG. 1 is a schematic diagram showing a typical portion of a reprogrammable routing network 10. A signal M₁ on line 12 is buffered by buffer 14 to drive routing track 16 with a signal T₁. In particular, FIG. 1 shows this signal drives a routing multiplexer 18 whose output is M₃ on line 20. The signal T₁ fans out to drive inputs of one or more routing multiplexers via lines 22 and 24. Routing multiplexer 18 receives input from other tracks, such as T₂ on line 26 and selects which of signals T₁ and T₂ to output by turning on one of non-volatile transistor switches 28 or 30. The signal M₃ on line 20 is buffered by buffer 32 to drive signal T₃ on routing track 34.

The multiplexer may also be driven to a constant logic 0 (signal C₀ on line 36), or to a constant logic 1 (signal C₁ on line 38). The non-volatile transistor switches used for this purpose (shown at reference numerals 40 and 42) are referred to as tie-off switches. In some cases either the C₀ or C₁ tie-off switch may be omitted depending on the logical purpose of the particular routing multiplexer in question. In any event, one or the other is required to put the routing buffer in a fixed state when it is not needed.

Persons of ordinary skill in the art will appreciate that in FIG. 1 the switches are drawn as floating gate transistor switches 28, 30, 40 and 42, but they could also be implemented as other types of non-volatile switches, or as volatile switches such as ordinary NMOS or CMOS pass gates controlled by control bits stored in SRAM configuration memory. The use of such other non-volatile switches is specifically contemplated as being within the scope of the present invention.

For purposes of the present invention, FPGA faults may generally be classified into several categories. A list of these categories is provided in the following Table 1:

TABLE 1 No. Description Type 1 Mux output (M_(i)) or track (T_(i)) stuck at 0 functional 2 Mux output (M_(i)) or track (T_(i)) stuck at 1 functional 3 Mux output shorted to corresponding track (M_(i) functional to T_(i)) 4 Routing switch stuck closed functional 5 Two or more tracks shorted (T_(i) to T_(j), i ≠ j) functional 6 Two or more mux outputs shorted (M_(i) to M_(j), functional i ≠ j) 7 Mux output shorted to non-corresponding track functional (M_(i) to T_(j), i ≠ j) 8 Tie-off switch stuck closed functional 9 Switch stuck open functional 10 Track open between buffer and switch functional 11 Open circuit between C₀ or C₁ and the tie-off functional switches 12 High-resistance switch delay 13 High-resistance track delay

Fault types 1 and 2 are “stuck bit” faults. Fault type 1 is where the output M_(i) of the routing multiplexer or the signal T_(i) on the input track to the routing multiplexer is stuck at a logic “0” state. Fault type 2 is where the output M_(i) of the routing multiplexer or the signal T_(i) on the input track to the routing multiplexer is stuck at a logic “1” state.

Fault type 3 is where the output M_(i) of the routing multiplexer is shorted to the signal T_(i), the track driven by the output of the same routing multiplexer. Fault type 4 is where one of the routing non-volatile memory transistor switches (either 28 or 30 in FIG. 1) is stuck in the on position.

Fault type 5 is where two or more tracks, i.e., T_(i) and T_(j) (where i≠j) are shorted together. Fault type 6 is where the outputs of two or more multiplexers are shorted together.

Fault type 7 is where the output M_(i) of one routing multiplexer is shorted to a signal T_(j) that is normally driven by the output of another routing multiplexer. Fault type 8 is where one of the tie-off transistors (40 and 42 in FIG. 1) is stuck closed.

Fault type 9 is where one of the non-volatile memory switches is stuck open. Fault type 10 is where a track between one of the buffers and non-volatile memory switches is open. Fault type 11 is where there is an open circuit between one of the tie-off signals (C₀ and C₁ in FIG. 1) and an associated tie-off switch.

Fault type 12 is where the on resistance of one of the non-volatile memory transistor switches is high. Fault type 13 is where the resistance of one of the tracks is high.

Fault types 1 through 11 are referred to as functional faults because they represent physical device failures or wiring defects and the chip functions incorrectly at any speed. Fault types 12 and 13 are referred to as delay faults because the chip will still function correctly if sufficient time for signal propagation is allowed.

With a type 3 fault, the corresponding routing buffer has its input and output shorted. This would most likely manifest itself as a type 1 or 2 fault. However the type 3 fault is listed separately to make clear that all cases of shorts between multiplexer outputs and tracks have been enumerated.

Since each routing switch connects some M_(i) to some T_(j), a type 4 fault is also a type 7 fault. However the type 4 fault is listed separately to make clear that all cases of switch faults have been enumerated.

A type 8 fault might result in a type 1 or type 2 fault if the constant input dominates any other signal connected to the multiplexer output. But this is not necessarily the case (e.g., the constant input is a logic “1” and another input can still sink the multiplexer output to ground).

A small set of a few test configurations is generally sufficient to permit each track to be controlled (i.e., driven to 0 and to 1), and each track to be observed, at least indirectly. By indirectly, it is meant that a track is considered controllable if it is driven by some other track that is controllable. A track is considered observable if it drives some other track that is observable. Such a set of test configurations covers all faults of types 1 through 3 (as well as some faults of other types).

A somewhat larger set of test configurations is generally sufficient to guarantee that for each pair of tracks T_(i) and T_(j), i≠j, there exists a configuration in which both tracks are independently controllable and T_(i) is observable, and there exists a configuration (possibly but not necessarily the same configuration) in which both tracks are independently controllable and T_(j) is observable. This provides the ability to reliably detect shorts between the two tracks. Since T_(i) is driven by M_(i), and T_(j) is driven by M_(j), this also provides the ability to reliably detect shorts between M_(i) and M_(j), between M_(i) and T_(j), and between M_(j) and T_(i). Thus such a set of test configurations covers all faults of types 4 through 7, as well as types 1 through 3. Most likely the set would need to contain only about a half-dozen configurations for a typical state of the art FPGA architecture. The exact number is architecture dependent.

Faults of type 8 through 11 can also be covered by a sufficiently large set of configurations. However this set would be much larger than those previously discussed, perhaps requiring two dozen or more configurations, although the exact number is architecture dependent. Also covering faults of type 12 and 13 (the delay faults) would significantly increase the number of configurations required. It would be useful if it could be made easier to cover faults of type 8 through 13.

A primary objective is to detect the existence of any fault with the fewest configurations, not necessarily to identify the location of a fault. The latter is useful, but more configurations can be used for fault location since it is not done during production testing.

BRIEF DESCRIPTION OF THE INVENTION

The present invention allows thorough coverage of faults in an FPGA routing network without needing to program a large number of test configurations into the FPGA.

According to a few aspects of the present invention, pullup transistors are provided to pull selected tracks up to V_(DD). Selected buffers may be disabled by coupling their ground connections to a signal that may be raised to turn them off. Selected inputs of multiplexers are coupled to bitlines through select transistors.

According to other aspects of the present invention tests are disclosed for performing fault analysis of certain FPGA circuits and conductors.

BRIEF DESCRIPTION OF THE DRAWING FIGURES

FIG. 1 is a schematic diagram showing a typical portion of a reprogrammable routing network.

FIG. 2 is a diagram showing one illustrative way to implement enhanced routing buffers according to one aspect of the present invention.

FIGS. 3A through 3C are schematic diagrams showing illustrative ways of connecting tie-off switches to an observation circuit via a bit line, according to another aspect of the present invention.

FIG. 4 is a diagram showing an illustrative example of a portion of the layout of an array of programmable floating gate switches according to another aspect of the present invention.

FIG. 5 is a diagram showing a typical test path according to another aspect of the present invention.

FIG. 6 is a diagram showing an illustrative circuit example where the output of one multiplexer is connected directly to a track without an intervening buffer.

FIG. 7 is a diagram showing a potential difficulty wherein charge sharing may prevent detection of an open in the track using a voltage sensing scheme.

FIG. 8 is a diagram showing examples of switches that might cause parallel paths.

FIG. 9 is a diagram showing how a more detailed analysis may permit some relaxation of addressing rules without compromising fault coverage.

FIG. 10 is a flow diagram showing an illustrative test according to one aspect of the invention.

FIG. 11 is a flow diagram showing an illustrative test according to another aspect of the invention.

FIG. 12 is a flow diagram showing an illustrative test according to another aspect of the invention.

FIG. 13 is a flow diagram showing an illustrative test according to another aspect of the invention.

DETAILED DESCRIPTION OF THE INVENTION

Persons of ordinary skill in the art will realize that the following description of the present invention is illustrative only and not in any way limiting. Other embodiments of the invention will readily suggest themselves to such skilled persons.

Throughout the following disclosure, various terms will be used. Some of these terms and their meanings are summarized here:

-   i: index identifying a routing multiplexer and its corresponding     buffer and routing track; -   x: index identifying a column of switches; -   y: index identifying a row of switches; -   W_(y): word (horizontal) line; connects to control gates of flash     devices in a row; -   B_(x): bit (vertical) line; connects to a sense amp corresponding to     column x of the switch array; -   T_(i): routing track; conveys signal from a routing buffer to inputs     of various routing multiplexers; -   M_(i): routing multiplexer output; conveys output of routing     multiplexer to input of corresponding routing buffer, which in turn     drives track T_(i); -   C₀, C₁: global signals equivalent to logic 0 and logic 1,     respectively; -   C_(0x), C_(1x): signals connected to one or more tie-off switches in     column x (during normal operation these are equivalent to logic 0 or     logic 1, respectively; for testing, they are connected to bit line     B_(x)); -   NGND: a signal that is low during normal operation and high during     testing; -   TSTEN: a signal that is high to enable testing and low during normal     operation.

Previously-discussed FIG. 1 is the starting point for an understanding of the present invention. It is assumed that the switches comprising the multiplexers are laid out in an array of rows and columns.

In order to test the switches, the ability is needed to force a logic value on the tracks T_(i), and to observe the logic state of the multiplexer outputs M_(j), preferably without adding any extra capacitance to the nodes M_(j) during normal operation as this would increase signal propagation delay.

To force the tracks, a new global signal NGND is added. NGND is grounded during normal operation, but high during testing. The routing buffers are enhanced so that their output is forced high when NGND is raised to logic 1.

Referring now to FIG. 2, a circuit diagram shows one illustrative way to implement enhanced routing buffers according to one aspect of the present invention. Enhanced routing buffer 50 includes buffer 52 having an input line 54 carrying signal M_(i), and an output line 56 carrying signal T_(i). Line 58 carrying the control signal NGND is used as the ground supply for the buffer 52. In addition, a p-channel pullup transistor 60 is connected to the output line 56 and is gated by the complement of NGND, denoted NGND! on line 62.

Persons skilled in the art will observe that using a switched NGND signal to power the buffers 52 also facilitates support for a low-power mode during which the buffers are switched off. Such skilled persons will also recognize that there are other ways to force the output of buffer 52 to a high state under control of a signal like NGND that will work equally well. When the switches are implemented using certain non-volatile technologies, such as flash memory devices, it may also be necessary to drive all tracks high during programming operations. The NGND signal can also serve this purpose.

To observe the multiplexer outputs without adding extra capacitance to them, use is made of the tie-off switches 40 or 42 of FIG. 1. Instead of always connecting the tie-off switches to logic 0 or logic 1, provision is made to allow them to be connected to an observation circuit via a bit line, as is now shown with reference to FIGS. 3A through 3C.

As shown in circuit 70 of FIG. 3A, the C_(1x) tie-off signal on line 72 can be either tied to V_(DD) by turning on transistor 76 by de-asserting the signal TSTEN on its gate line 76 or connected to the bit line B_(x) at reference numeral 78 by turning on transistor 80 by asserting the signal TSTEN on its gate line 82.

As shown in circuit 90 of FIG. 3B, the C_(0x) tie-off signal on line 92 can be either tied to ground by turning on transistor 94 by de-asserting the signal TSTEN to raise gate line 96, or connected to the bit line B_(x) on line 98 by turning on transistor 100 by asserting the signal TSTEN to lower gate line 102. TSTEN is a global signal that is asserted (raised) for those tests employing the bit lines.

Some non-volatile switch technologies may require that the source or drain of each switch be kept high during programming. In this case, NGND (which is high during programming) is used instead of ground as the global logic 0 signal, C0. In this situation, the circuit 110 shown in FIG. 3C is used instead of the circuit shown in FIG. 3B. In circuit 110 of FIG. 3C, the C_(0x) tie-off signal on line 112 can be either tied to the signal NGND by turning on p-channel transistor 114 and n-channel transistor 116 (acting together as a transmission gate) by de-asserting the signal TSTEN on the gate line 118 of p-channel transistor 114 and its complement signal TSTEN! on the gate line 120 of n-channel transistor 116, or to the bit line B_(x) on line 122 by turning on transistor 124 by asserting the signal TSTEN on its gate line 126.

TSTEN is a global signal that is raised for those tests employing the bit lines. In the circuits 70 and 110 of FIGS. 3A and 3B, and 3C, raising TSTEN to a logic 1 state turns on the n-channel transistors (80, 94 and 124) to connect to the bit line B_(x), and lowering TSTEN to a logic 0 state turns on the p-channel transistor 74, the n-channel transistor 94, and the transmission gate transistors 114 and 116 to connect V_(DD), ground, and NGND, respectively.

The following discussion assumes a tie-off switch located at column x of the switch array. If this switch is used to drive the multiplexer low and this is the only tie-off switch in the multiplexer, then a signal C_(0x), specific to column x, is used instead of C₀. If this switch is used to drive the multiplexer high and this is the only tie-off switch in the multiplexer, then a signal C_(1x), specific to column x, is used instead of C₁. If the multiplexer has tie-off switches for both constants C₀ and C₁, either C₀ is replaced by C_(0x), or C₁ is replaced by C_(1x), but not both.

By placing the observation point before the tie-off switch, adding capacitive loading to the signal propagation path through the routing multiplexer is avoided. However the appropriate tie-off switch must be turned on when using the bit line to observe a multiplexer output.

Referring now to FIG. 4, a diagram shows an illustrative example of a portion 130 of the layout of an array of programmable floating gate switches 132 a through 132 p. All switches in the same row y share a control gate or word line W_(y). FIG. 4 illustrates a portion of an array with eight word lines W₁ through W₈, shown at reference numerals 134, 136, 138, 140, 142, 144, 146, and 148, respectively. Persons skilled in the art will observe that, other than the word line, the means for programming the floating gates are omitted from FIG. 4.

Typically all of the switches comprising a specific multiplexer will be located in the same column, but this is not necessarily the case (e.g., the multiplexer whose output is M₃ at reference numeral 150 in FIG. 4). The switches comprising various multiplexers may be interspersed (e.g., those comprising the multiplexers whose outputs are M₁ and M₂ at reference numerals 152 and 154, respectively, in FIG. 4).

In some cases it may be that a switch connects two distinct multiplexer outputs (e.g., switch 132 m connecting M₃ and M₄ in FIG. 4) or two distinct tracks (e.g., switch 132 k connecting tracks T₂ and T₅ in the figure), and thus may not make a useful connection. Such switches are referred to as isolation switches and will always be configured in a non-conducting state during normal operation. A stuck-closed fault in isolation switches is equivalent to a short between two multiplexer outputs or two tracks, and is thus a type 5 or type 6 fault.

During normal FPGA operation, the switches either conduct or do not according to how they were configured during programming. However for purposes of performing testing using the bit lines according to the present invention, it is assumed that the transistor switches may also be controlled dynamically by means of the word lines without reprogramming. This is accomplished by first programming (or erasing) all switches so they are in some common state. Then, a sufficiently high voltage V_(on) is applied to W_(y), and all the switches in row y will be forced to conduct. Alternatively, by applying a sufficiently low voltage V_(off) to W_(y), all the switches in row y will be forced to not conduct. By applying these voltages to the word lines, the switches can be dynamically controlled. Persons skilled in the art will realize that such dynamic control of the switches will not have the same addressing flexibility that exists when programming them individually in the usual way.

The states of key signals and the switches in the various modes are summarized in TABLE 2.

TABLE 2 Mode NGND TSTEN C0x C1x Switches Normal low low low high In configured Operation state Test Using Bit high high floating floating Under control of Lines word lines Programming high low high high Being programmed

Referring now to FIG. 5, a diagram shows a typical test path through a portion 160 of an FPGA architecture in accordance with one aspect of the present invention. Portion 160 of the FPGA architecture illustrated in FIG. 5 includes multiplexers 162 and 164. Routing multiplexer output M_(i) (shown at reference numeral 166) drives track T_(i) (reference numeral 168) through buffer 170. Track T_(i) drives switch 172 in multiplexer 162 as well as switch 174 in multiplexer 164. The constant C_(x) drives switch 176 in multiplexer 162 and switch 178 in multiplexer 162. The output of multiplexer 162 M_(j) drives track T_(j) (at reference numeral 180) through buffer 182 and the output of multiplexer 164 drives track T_(k) (at reference numeral 184) through buffer 186. Buffers 170, 182 and 186 are controlled by the NGND signal at reference numeral 188 as previously disclosed.

Transistor 190 couples the C_(x) input of multiplexer 162 to bitline B_(x) shown at reference numeral 192. The state of bitline B_(x) may be read by sense amplifier 194. Similarly, transistor 196 couples the C_(x) input of multiplexer 164 to bitline B_(x), shown at reference numeral 198. The state of bitline B_(x) may be read by sense amplifier 200.

Persons of ordinary skill in the art will note that it is possible for multiple parallel test paths driven by the same track to be active simultaneously. For example, a test path from track T_(i) through multiplexer 162 to its output M_(i) sensed on bitline B_(x) at reference numeral 192 through switch 176 and transistor 190 may be active at the same time as a test path from track T_(i) through multiplexer 164 to its output M_(i) sensed on bitline B_(x) at reference numeral 198 through switch 178 and transistor 196. This may even be unavoidable if a track fans out to multiplexers of a symmetrical nature occurring in multiple switch columns but addressed by the same switch rows.

It may be beneficial in some cases for multiplexers not to have a corresponding buffer. As will now be shown with reference to FIG. 6, another aspect of the present invention is shown. FIG. 6 shows a portion 210 of an FPGA architecture in accordance with an illustrative embodiment of this aspect of the present invention.

In FIG. 6, the output M_(i) (at reference numeral 212 of one multiplexer (not shown) drives track T_(i) at reference numeral 214 through buffer 216. The ground connection of buffer 216 is driven by the signal NGND as previously disclosed with reference to FIGS. 2 and 5. An input of multiplexer 218 (switch 220) is driven from track T_(i). The output of multiplexer 218 M_(j) (at reference numeral 224) is connected directly to a track T_(j) without an intervening buffer. Track T_(j) then fans out to other multiplexers, including multiplexer 226 at switch 230. The output M_(k) of multiplexer 226 at reference numeral 228 drives track T_(k) at reference numeral 234 through buffer 236. The ground connection of buffer 236 is driven by the signal NGND. The C_(x) input to multiplexer 226 is shown connectable through transistor 238 to bitline B_(x) at reference numeral 240. Bitline Bx may be sensed by sense amplifier 242.

Pullup transistor 244 can pull track T_(i) up to V_(DD) by asserting the signal NGND! on line 246. Similarly, pullup transistor 248 can pull track T_(i) up to V_(DD) when the signal (NGND!+TSTEN) on line 250 is low.

Unbuffered multiplexers do not require a tie off input. In the case of the circuit shown in FIG. 6, the test path must pass through two levels of multiplexers including multiplexers 218 and 226. If pullup transistors such as transistors 248 are provided on the outputs of the first-level multiplexers or inputs of the second-level multiplexers to drive them high during programming mode, these pullup transistors must not be activated during testing, only during programming.

The sense circuit 242 may use various methods to verify that the path under test is closed. The simplest would be for the sense circuit to sense current on the bitline B_(x) at reference numeral 240.

An alternative method would be to use pre-charging and voltage sensing. First, the switches are turned off. Next, the bitline B_(x) and the C_(x) signal line are precharged to ground via the sense circuit. Next, the grounding circuit is disconnected, and then the switches are turned on. Next, that voltage on B_(x) is verified as the sense circuit is gradually pulled up by pullup 244 through the path under test.

A potential difficulty with the voltage-sensing scheme is that charge sharing may prevent detection of an open in the track. Such a situation is shown in FIG. 7, to which attention is now drawn.

Referring now to FIG. 7, a portion 160 of an FPGA architecture is shown. The output M_(i) at reference numeral 252 of a multiplexer (not shown) drives track T_(i) at reference numeral 254 through buffer 256. The ground connection of buffer 256 is driven by the signal NGND. Track T_(i) drives multiplexer 258 at its switch 260. The output M_(j) of multiplexer 258 is shown at reference numeral 262.

Constant C_(x) input to multiplexer 258 (at reference numeral 264) may be used to sense the output M_(j) of multiplexer 258 through its C_(x) input switch 266, through transistor 268 to bitline B_(x) at reference numeral 270 using sense amplifier 272. The track T_(i) at reference numeral 254 may be pulled up by pullup transistor 274 by asserting the NGND! signal on line 276.

Track T_(i) (reference numeral 254) has a capacitance C_(T) shown at reference numeral 278. Input C_(x) has a capacitance C_(C) shown at reference numeral 280. Bitline B_(x) has a capacitance C_(B) shown at reference numeral 282. Multiplexer output M_(j) (reference numeral 262) has a capacitance C_(M) shown at reference numeral 284. There are some circumstances under which charge sharing may prevent detection of an open in the track, for example at reference numeral 286. However because the capacitances C_(B)+C_(C) are large compared to C_(M)+C_(T) this should not normally be an issue.

To ensure that a test does not fail to catch a fault, it must be ensured that other switches that might create a path parallel to the path under test are turned off during the test. Referring now to FIG. 8, examples of switches that might cause such parallel paths are shown.

In FIG. 8, a portion 290 of an FPGA includes an output 292 from a multiplexer (not shown) driving track T at reference numeral 294 through buffer 296. Buffer 296 is controlled by the NGND signal on line 298 as taught herein. Pullup transistor 300 can pull track 294 up to VDD when the NGND! signal is asserted on line 302.

Track T is connected to multiplexer 304 and drives one of its switches 306. Constant C_(x) input line 308 drives switch 310 in multiplexer 304. Another switch 312 is shown in multiplexer 304. Constant line C_(x) 308 may be sensed using transistor 316 to drive bitline B_(x) at reference numeral 314 when the signal TSTEN at drives the gate of transistor 316. Sense amplifier 318 is coupled to bitline B_(x).

Another switch 320 is shown coupled to track T and another switch 322 is shown coupled to constant line Cx. The output M of multiplexer 304 at reference numeral 324 is coupled to a track 326 through switch 328. Switches 320 and 322 may be associated with other multiplexers (not shown). The important thing is that none of these switches create another parallel path to track T; create another parallel path to the same bit line B_(x) (or C_(x), to which B_(x) is connected during testing); or lead to another track T′, which would create a parallel path to V_(DD), bypassing portions of path under test. A path that violates one of these rules is called a sneak path.

Certain rules must be followed when arranging the connections to the switch array to make it possible to properly address the various combinations of switches required for testing.

Consider an input switch in row y₁ of a buffered multiplexer which connects a track T to the multiplexer output M at reference numeral 324 in FIG. 8. There must be some tie-off switch in column x and row y₂ connecting C_(x) to M such that when W_(y) ₁ and W_(y) ₂ are turned on neither T nor M is connected to any other track T′, nor is another parallel path created from T or M to T or C_(x). (Note that y₁ and y₂ are not necessarily distinct).

Consider an input switch 220 in row y₁ of unbuffered multiplexer 218 in FIG. 6, which connects a track T_(i) (at reference numeral 214) to the multiplexer output M_(j) at reference numeral 224). Then there must be some input switch 230 in row y₂ of a buffered multiplexer 226 connecting the output M_(j) of the unbuffered multiplexer to the buffered multiplexer output M_(k) (at reference numeral 228), and a tie-off switch 232 of the buffered multiplexer in column x and row y₃ connecting C_(x) (at reference numeral 238) to M_(k), such that when W_(y) ₁ , W_(y) ₂ and W_(y) ₃ are turned on and neither T_(i), M_(j) nor M_(k) is connected to any other track T′, nor is another parallel path created from T_(i), M_(j), or M_(k) to T_(i) or Cx. (Note that y₁, y₂ and y₃ are not necessarily distinct).

A more detailed analysis may permit some weakening of the above addressing rules without compromising fault coverage. FIG. 9 shows an example.

Referring now to FIG. 9, a portion 330 of an FPGA includes a multiplexer output M at reference numeral 332 driving track T at reference numeral 334 through buffer 336. Pullup transistor 338 can pull track T up to V_(DD) when the signal NGND! is asserted on its gate at line 340.

Track T drives switch 342 in multiplexer 344. The output M₁ of multiplexer 344 is at line 346. Another switch 348 is coupled to transistor 350 controlled by the signal TSTEN. Track T also drives switch 352 in multiplexer 354. Another switch 356 is coupled to transistor 358 controlled by the signal TSTEN. Another switch 360 in multiplexer 354 is coupled to track T′ at reference numeral 362. The output M₂ of multiplexer 354 is on line 364.

In this case, it is not possible to test the switch 342 connecting track T to multiplexer 344 without creating a sneak path to another track T′ in multiplexer 354. To perform the test, word lines 366 and 368 are driven high, and transistors 338, 350, and 358 are turned on. Dashed line AA shows the intended test path from pullup transistor 338, through switch 342 in multiplexer 344, then through switch 348 and transistor 350. Dashed line CC shows the sneak path from T′ through switches 360, 352, 342, 348 and transistor 350. This arises because word lines 366 and 368 turn on switches 342 and 348 as intended, but also turn on switches 352 and 360. Due to sneak path CC, the intended test path may miss certain faults, such as an open between pullup 338 and the point where track T splits on its way to switches 342 and 352. Dashed line BB shows a different test path, this one from pullup 338 through switches 352 and 356 to transistor 358 As can be seen from an examination of FIG. 9, any faults hidden by sneak path CC will be covered by the additional test path BB, so this type of sneak path may be tolerated provided the additional test path BB can itself be tested without additional sneak paths.

The procedures for each test are now described in detail, showing how to cover faults of types 8-13 (those that would otherwise require programming a large number of configurations to cover).

Referring now to FIG. 10, a flow diagram shows an illustrative method that may be used to test for switches that are stuck open (type 9 fault) or tracks that are open (type 10 fault). First, at reference numeral 370, all switches are forced off by lowering all word lines to V_(off) and NGND is raised to force all buffer outputs to V_(DD). Next at reference numeral 372 an as-yet untested multiplexer output M_(j) is selected Next, at reference numeral 374, the unique column x₁ and row y₁ containing the tie-off switch connecting C_(0x1) or C_(1X1) to M_(j) is found. Word line W_(y1) is raised to V_(on) and TSTEN is raised. Next, at reference numeral 376, a column x2 and row y2 containing an as yet untested routing switch connecting a track T_(i) to M_(j) is selected. Next, at reference numeral 378, word line W_(y2) is raised to V_(on). The observation circuit is used to verify that bit line B_(x1) is pulled high (by the path from V_(DD) through T_(i), the switch in column x2 and row y2, M_(j), and the switch in column x1 and row y1). If this was not the case, record a failure. Then the voltage on word line W_(y2) is lowered back to V_(off). Next, at reference numeral 380, a check is made to determine whether there are more untested routing switches driving multiplexer output M_(j). If so, the process returns to reference numeral 376. If not, at reference numeral 382, TSTEN is lowered and W_(y1) is lowered back to V_(off). Next, at reference numeral 384 a check is made to determine whether there are more untested multiplexer outputs M_(j). If so, the process returns to reference numeral 372. If not, this test is completed.

It is apparent that in some cases raising W_(y2) to V_(on) can be performed for more than one multiplexer simultaneously to reduce test time. Let S be the set of multiplexers for which raising W_(y2) to V_(on) is being done simultaneously. Let i be a multiplexer in the set S. Let x₁[i] be the value of x₁ for multiplexer i, etc. Then for every pair of multiplexers i and j in S, all of the following conditions must be true:

-   (1) x₁[i]≠x₁[j] -   (2) multiplexer i has switches in only two rows from the set {y₁[i],     y₂[i], y₁[j], y₂[j]} -   (3) multiplexer j has switches in only two rows from the set {y₁[i],     y₂[i], y₁[j], y₂[j]}.

Referring now to FIG. 11, a flow diagram shows an illustrative method that may be used to test for resistive switches or tracks (type 12 or 13 faults). The same procedure as was used for testing stuck open faults is used, except that at step 398 the observation circuit must detect whether the current required to ground B_(x) is sufficiently high.

Suppose each of the two switches in the pull-up path has a resistance of 5K ohms, and the device gated by TSTEN also has a resistance of 5K ohms for a total of 15K ohms. A defective contact or resistive switch is likely to add 20K ohms, roughly doubling the total resistance of the path. In this case a sufficiently high current to pass the test would be at least one half the typical (non-defective) current.

Referring now to FIG. 12, a flow diagram shows an illustrative method that may be used to test for switches that are stuck closed (type 4 or 8 faults), or any other shorts between a routing track and a non-corresponding buffer input (type 7 fault). First, at reference numeral 410, all switches are forced off by lowering all word lines to V_(off). Then, at reference numeral 412, NGND is raised to all buffer outputs to V_(DD). An as yet untested row y is selected, and W_(y) is raised to V_(on) at reference numeral 414. TSTEN is raised at reference numeral 416. For each column x, the observation circuit on bit line B_(x) is used at reference numeral 418 to verify that B_(x) is not being pulled to V_(DD) (through the switch in column x and row y and any other switch that is stuck-on in the same multiplexer as this switch). If B_(x) is being pulled to V_(DD), a failure is recorded. Next, at reference numeral 420, TSTEN is then lowered and W_(y) is lowered back to V_(off). Next, at reference numeral 422, it is determined whether any untested rows y remain. If so, the process returns to reference numeral 414. Otherwise this test is done at reference numeral 424.

Persons of ordinary skill in the art will note that instead of turning on each individual row in turn, it may be possible in some cases to turn on two or more rows simultaneously provided this does not create a path from any track T_(i) to any bit line B_(x) (in the absence of stuck-closed switches).

To test for an open connection to the tie-off switches (type 11 fault), it needs to be verified that the input of each tie-off switch is properly connected to its constant in normal mode. The above-disclosed tests illustrated with reference to FIGS. 10-12 have verified continuity from each tie-off switch input to the corresponding C_(0x) or C_(1x) and bit line B_(x). It remains to verify that C_(0x) and C_(1x) are properly driven to logic 0 or logic 1, respectively, in normal mode.

One way to do this is to program an appropriate set of test configurations and execute appropriate tests on each. It suffices to program one multiplexer on each C_(0x) or C_(1x) signal to select its tie-off input and observe that the multiplexer output goes to the appropriate level. (Only one is necessary because the input switch testing verifies continuity from each tie-off switch to the bit line B_(x).) This should require only one or two configurations. An exemplary one of such tests is illustrated with reference to FIG. 13. First, at reference numeral 430, one multiplexer on each C_(0x) or C_(1x) signal is programmed to select its tie-off input. Then, at reference numeral 432, it is verified through the observation circuit that the output of the multiplexer is at the level of the selected C_(0x) or C_(1x) signal.

It is also possible to use the bit lines to verify that each C_(1x) is pulled high. This requires activating both transistors connected to C_(1x) in FIG. 3A, which would require provision of another independent control signal instead of TSTEN on gate line 76.

The present invention involves adding new devices gated by TSTEN or TSTEN!, as shown in FIGS. 3A through 3C. Stuck open or closed faults in these new devices are also covered, as will now be disclosed.

For devices connecting C_(0x) to NGND or C_(1x) to V_(DD), stuck open test is already covered as a fault of type 11. A stuck closed test is already covered by switch stuck closed test above (B_(x) pulled up when it should not be).

For devices connecting C_(0x) or C_(1x) to B_(x), a stuck open test is already covered by the switch-stuck-open test above (B_(x) not pulled up when it should be). A stuck closed test comprises turning TSTEN off, NGND high, all W_(y) lines on, and making sure no B_(x) line is pulled high.

During normal operation, C₀ is tied to logic 0 and C₁ to logic 1. However there may be some tests during which it is convenient to temporarily switch C₀ to logic 1, or C₁ to logic 0, or both.

Instead of providing separate C_(x) and B_(x) lines for every column of switches, it may be possible to save circuitry by having one pair of C_(x) and B_(x) lines shared by multiple switch columns. However this may complicate the task of satisfying the rules for arranging the switches in the array and limit the number of paths that may be tested simultaneously.

While embodiments and applications of this invention have been shown and described, it would be apparent to those skilled in the art that many more modifications than mentioned above are possible without departing from the inventive concepts herein. The invention, therefore, is not to be restricted except in the spirit of the appended claims. 

1. An FPGA architecture including: a plurality of word lines; a plurality of bit lines; a plurality of wiring tracks; multiplexers having non-volatile switches having control gates, the control gates of different switches coupled to ones of the word lines; buffers connecting the switches to the wiring tracks, the buffers having a ground connection coupled to a signal NGND; and at least some of the switches being a tie-off switch coupleable to a tie-off potential, each tie-off switch coupleable to one of the of bit lines. 2-9. (canceled)
 10. A field-programmable gate array architecture including: a plurality of word lines; a plurality of wiring tracks; multiplexers having switches arranged in rows, each row associated with one of the word lines, each row of switches able to be forced on or off in response to signals driven onto the one of the word lines associated with the row; buffers connecting the switches to the wiring tracks, the buffers having outputs that can be forced to a known state by a common signal; and at least some of the switches being tie-off switches coupleable to one of at least one tie-off potential, and a node that can be observed for testing.
 11. The field-programmable gate array architecture of claim 10 wherein the at least one tie-off potential is ground.
 12. The field-programmable gate array architecture of claim 10 wherein the at least one tie-off potential is VDD.
 13. The field-programmable gate array architecture of claim 10 wherein the at least one tie-off potential includes ground and VDD.
 14. The field-programmable gate array architecture of claim 10 wherein the buffers can be forced to a common known state by having their ground connection coupled to a switched ground supply.
 15. The field-programmable gate array architecture of claim 10 wherein the buffers can be forced to a common known state by having their power connection coupled to a switched VDD supply.
 16. The field-programmable gate array architecture of claim 10 wherein the switches are non-volatile switches having control gates, the control gates of different switches coupled to ones of the word lines.
 17. The field-programmable gate array architecture of claim 10 further including a plurality of bit lines, and wherein each tie-off switch is coupleable to one of the bit lines for observation. 